package com.unohacha.qqj.fzdr.bean.citybean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * 新的
 */

public class ProvinceBean implements IPickerViewData {


    /**
     * id : 1
     * name : 北京市
     * level : 1
     * parent_id : 0
     * two_reg : [{"id":2,"name":"北京市","level":2,"parent_id":1,"three_reg":[{"id":3,"name":"东城区","level":3,"parent_id":2},{"id":14,"name":"西城区","level":3,"parent_id":2},{"id":22,"name":"崇文区","level":3,"parent_id":2},{"id":30,"name":"宣武区","level":3,"parent_id":2},{"id":39,"name":"朝阳区","level":3,"parent_id":2},{"id":83,"name":"丰台区","level":3,"parent_id":2},{"id":105,"name":"石景山区","level":3,"parent_id":2},{"id":115,"name":"海淀区","level":3,"parent_id":2},{"id":145,"name":"门头沟区","level":3,"parent_id":2},{"id":159,"name":"房山区","level":3,"parent_id":2},{"id":188,"name":"通州区","level":3,"parent_id":2},{"id":204,"name":"顺义区","level":3,"parent_id":2},{"id":227,"name":"昌平区","level":3,"parent_id":2},{"id":245,"name":"大兴区","level":3,"parent_id":2},{"id":264,"name":"怀柔区","level":3,"parent_id":2},{"id":281,"name":"平谷区","level":3,"parent_id":2},{"id":301,"name":"密云县","level":3,"parent_id":2},{"id":322,"name":"延庆县","level":3,"parent_id":2}]}]
     */

    private int id;
    private String name;
    private int level;
    private int parent_id;
    private List<TwoRegBean> two_reg;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public List<TwoRegBean> getTwo_reg() {
        return two_reg;
    }

    public void setTwo_reg(List<TwoRegBean> two_reg) {
        this.two_reg = two_reg;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class TwoRegBean {
        /**
         * id : 2
         * name : 北京市
         * level : 2
         * parent_id : 1
         * three_reg : [{"id":3,"name":"东城区","level":3,"parent_id":2},{"id":14,"name":"西城区","level":3,"parent_id":2},{"id":22,"name":"崇文区","level":3,"parent_id":2},{"id":30,"name":"宣武区","level":3,"parent_id":2},{"id":39,"name":"朝阳区","level":3,"parent_id":2},{"id":83,"name":"丰台区","level":3,"parent_id":2},{"id":105,"name":"石景山区","level":3,"parent_id":2},{"id":115,"name":"海淀区","level":3,"parent_id":2},{"id":145,"name":"门头沟区","level":3,"parent_id":2},{"id":159,"name":"房山区","level":3,"parent_id":2},{"id":188,"name":"通州区","level":3,"parent_id":2},{"id":204,"name":"顺义区","level":3,"parent_id":2},{"id":227,"name":"昌平区","level":3,"parent_id":2},{"id":245,"name":"大兴区","level":3,"parent_id":2},{"id":264,"name":"怀柔区","level":3,"parent_id":2},{"id":281,"name":"平谷区","level":3,"parent_id":2},{"id":301,"name":"密云县","level":3,"parent_id":2},{"id":322,"name":"延庆县","level":3,"parent_id":2}]
         */

        private int id;
        private String name;
        private int level;
        private int parent_id;
        private List<ThreeRegBean> three_reg;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public int getParent_id() {
            return parent_id;
        }

        public void setParent_id(int parent_id) {
            this.parent_id = parent_id;
        }

        public List<ThreeRegBean> getThree_reg() {
            return three_reg;
        }

        public void setThree_reg(List<ThreeRegBean> three_reg) {
            this.three_reg = three_reg;
        }

        public static class ThreeRegBean {
            /**
             * id : 3
             * name : 东城区
             * level : 3
             * parent_id : 2
             */

            private int id;
            private String name;
            private int level;
            private int parent_id;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public int getParent_id() {
                return parent_id;
            }

            public void setParent_id(int parent_id) {
                this.parent_id = parent_id;
            }
        }
    }
}
